package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeliverFailMapper;
import com.ruoyi.system.domain.DeliverFail;
import com.ruoyi.system.service.IDeliverFailService;
import com.ruoyi.common.core.text.Convert;

/**
 * 巡检未通过 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-07
 */
@Service
public class DeliverFailServiceImpl implements IDeliverFailService 
{
	@Autowired
	private DeliverFailMapper deliverFailMapper;

	/**
     * 查询巡检未通过信息
     * 
     * @param id 巡检未通过ID
     * @return 巡检未通过信息
     */
    @Override
	public DeliverFail selectDeliverFailById(Long id)
	{
	    return deliverFailMapper.selectDeliverFailById(id);
	}
	
	/**
     * 查询巡检未通过列表
     * 
     * @param deliverFail 巡检未通过信息
     * @return 巡检未通过集合
     */
	@Override
	public List<DeliverFail> selectDeliverFailList(DeliverFail deliverFail)
	{
	    return deliverFailMapper.selectDeliverFailList(deliverFail);
	}
	
    /**
     * 新增巡检未通过
     * 
     * @param deliverFail 巡检未通过信息
     * @return 结果
     */
	@Override
	public int insertDeliverFail(DeliverFail deliverFail)
	{
	    return deliverFailMapper.insertDeliverFail(deliverFail);
	}
	
	/**
     * 修改巡检未通过
     * 
     * @param deliverFail 巡检未通过信息
     * @return 结果
     */
	@Override
	public int updateDeliverFail(DeliverFail deliverFail)
	{
	    return deliverFailMapper.updateDeliverFail(deliverFail);
	}

	/**
     * 删除巡检未通过对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteDeliverFailByIds(String ids)
	{
		return deliverFailMapper.deleteDeliverFailByIds(Convert.toStrArray(ids));
	}
	
}
